home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 April / EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso / EARCD / gfx / show / jcosub26.lha / JACOsub / documentation / JScripts.doc < prev    next >
Text File  |  1996-11-30  |  64KB  |  1,231 lines

  1. JACOsub 2.6 SCRIPT FILE FORMAT SPECIFICATION
  2. ============================================
  3.  
  4. Here is the complete JACOsub script file format specification.
  5. It's not complicated (unless you want it to be) and quite flexible.
  6. Check out the sample script (demo.js) that came with this software;
  7. it demonstrates many of the things you can do with a script.
  8.  
  9. The accompanying file QuickRef.doc is a summary of this document, providing
  10. brief descriptions of the commands, escape codes, and directives that you
  11. can put into a script.
  12.  
  13. CONTENTS OF THIS DOCUMENT
  14. =========================
  15.  
  16.  1.  Basic format conventions
  17.  2.  Compiler commands
  18.  3.  Timed lines
  19.  4.  Directives (for controlling timed lines)
  20.  5.  Sample lines
  21.  6.  Credits
  22.  
  23. Most of the information in this document is demonstrated by the timed
  24. script demo.js, which is included in the JACOsub distribution archive.
  25.  
  26.  
  27. 1.  BASIC FORMAT CONVENTIONS
  28. ============================
  29.  
  30. 1.  Space characters (white space) may consist of spaces or tabs.  Any line
  31.     in a script file may contain any amount of white space in front of,
  32.     behind, or in between parameters or words.
  33.  
  34. 2.  A line cannot be more than 511 characters in length (but you can
  35.     concatenate several lines; see "escape codes" below).
  36.  
  37. 3.  Lines in the file may be blank lines, compiler commands, or timed
  38.     lines for the script.  All these are explained below.
  39.  
  40. 4.  Blank lines or lines containing white space only are ignored.
  41.  
  42.  
  43. 2.  COMPILER COMMANDS
  44. =====================
  45.  
  46. Any line where # is the first non-space character is treated as a compiler
  47. command.  The command is indicated by the next character or word (upper or
  48. lowercase) following the #.  Some commands have arguments, which are
  49. assumed to begin with the next non-whitespace characters following the
  50. command.  Anything shown here in square brackets [] are optional.
  51. The commands are:
  52.  
  53.    #       (followed by a space) Comment.  The line will be ignored.
  54.  
  55.            Example:
  56.            # This is a comment.
  57.  
  58.    #C[LOCKPAUSE] <time>
  59.            While a script is running, this command forces the clock to
  60.            pause the clock at the time specified by <time>.  Pressing a key
  61.            will resume play.  <time> is an offset from the beginning of the
  62.            script in the form H:MM:SS.FF (hours:minutes:seconds.units).
  63.            The beginning time of a script is usually 0:00:00.00 unless the
  64.            script was included with an offset using the #I command.
  65.  
  66.            This command is useful for titling multiple laserdisc sides in
  67.            a single script.  Be warned:  There will be no indication on the
  68.            screen telling you that the script is paused!  You have to keep
  69.            track of your pauses yourself.
  70.  
  71.    #D[IRECTIVE][n] <directive string> [optional_name]
  72.            Change some directive defaults (see the Directives section
  73.            below), for example:
  74.  
  75.            #D CF10F2  small_red_text
  76.            #directive3 hr50vmf2
  77.            #d9JLJBC
  78.  
  79.            This command affects only those lines following it.  Scripts may
  80.            contain as many #D commands as you like.
  81.  
  82.            There are 31 default directives available, D0 through D30.
  83.            Specifying #D is the same as #D0 -- this sets the general
  84.            overall default directive when a title line contains no
  85.            directive or when just the D directive is present.  The
  86.            directives D1 - D30 may be set for situations when you need a
  87.            shorthand way to represent a long complicated directive string
  88.            in many places in your script.  Directives D0-D30 are initially
  89.            all identical, according to your DIRECTIVE config setting.
  90.  
  91.            Instead of a long cryptic directive in your timed lines, you
  92.            may use the short codes you define, like D, D1, D2, etc.
  93.            Alterately, you may also assign sensible names to your directive
  94.            definitions and use these names instead of the codes D3, D4,
  95.            etc.  If you use a directive name instead of the actual
  96.            directive code in your title, you must enclose the name in
  97.            square brackets [].  The name definition in the #D command must
  98.            NOT contain brackets.  The name will be truncated after 20
  99.            characters, and uppercase or lowercase doesn't matter.
  100.  
  101.    #F[ONT] <n> <fontname.font> <size> [CLEAN or QUICK&DIRTY] [Y/X]
  102.            This command sets font <n> to <fontname.font> which is <size>
  103.            pixels high.  Font settings affect the entire script.  The <n>
  104.            argument may range from 0 to 9 if the software has been
  105.            registered, otherwise <n> may range from 0 to 3.  #F commands
  106.            should be specified before any timed lines in the script.
  107.  
  108.            CLEAN or QUICK&DIRTY indicate the rendering mode for the font.
  109.            Normally, you should NEVER need to set the rendering mode!  The
  110.            program is smart enough to determine the best mode.  Mono-color
  111.            fonts will always be QUICK&DIRTY, and color fonts will be CLEAN
  112.            only if the characters are designed to overlap.
  113.  
  114.            The rest of the arguments apply to the Amiga only:
  115.  
  116.            The Y/X argument modifies the default 1/1 aspect ratio for the
  117.            font's height vs. width.  It must be specified as two integers
  118.            separated by a slash with no spaces, as in 40/33.  This argument
  119.            works only in AmigaDOS versions 2.0 or higher.
  120.  
  121.            NOTE:  Due to the Amiga's internal font management, the Y/X
  122.            parameter will affect only those fonts having names and/or sizes
  123.            different from those fonts already loaded in memory.  For
  124.            example, the 36-pixel JACOsub font is loaded as font 0 when the
  125.            program starts up, and its aspect ratio will be whatever it had
  126.            when it loaded (see the FONT setting in the jacosub.cfg file).
  127.            Any attempt to assign "jacosub.font 36" a different aspect will
  128.            have no effect.  You can get around this by setting the program
  129.            configuration so that font 0 is something like Topaz 9,
  130.            rebooting, and then using your script to load jacosub.font 36
  131.            with the desired aspect ratio.
  132.  
  133.            Example: #F 2 Diamond.font 20
  134.  
  135.    #H[RES] <resolution mode>
  136.            This sets the horizontal display resolution mode (HIRES or
  137.            SUPERHIRES) that is expected to be used with the script.  This
  138.            should be set in the program configuration; set it in the script
  139.            ONLY if the script is designed specifically for a particular
  140.            resolution mode.  SUPERHIRES will be ignored on computers
  141.            incapable of it.  This command will be ignored if it occurs
  142.            after the first timed line, or inside #Included scripts.
  143.  
  144.            On Amigas, a typical HIRES mode is 640x400.  A typical
  145.            SUPERHIRES mode is 1280x400.  Under MSDOS, HIRES is 640x400,
  146.            and SUPERHIRES is 800x600.
  147.  
  148.    #I[NCLUDE] <time> <filename>
  149.            Include another script file <filename> into the current script,
  150.            offsetting the second script's start time by <time>.  <time> is
  151.            always FORWARD offset.
  152.  
  153.            This command is useful, for example, if you are subtitling a
  154.            series of TV shows having subtitles for credits and ending song
  155.            lyrics.  Rather than importing and/or re-timing the same
  156.            sequences over and over again for each episode, you need only
  157.            time the song lyrics once and the credits once, with the times
  158.            starting at zero, and save these two scripts as separate files.
  159.            When your "main" script includes these other scripts, they will
  160.            be incorporated properly into the main script to start at the
  161.            proper time (which is <time> added to the first time event in
  162.            the included script), and any overlapping time ranges will be
  163.            interwoven properly.
  164.  
  165.            <time> is specified in the form H:MM:SS.FF, where H is an hours
  166.            digit, M is a minutes digit, S is a seconds digit, and F is a
  167.            fractional-second digit.  The units of F are determined by the
  168.            #T command (below), and default to 30 units/second if the #T
  169.            command was omitted (that is, the FF digits are SMPTE units
  170.            ranging from 00 to 29).  The included script may in turn contain
  171.            its own, possibly different, #T command, and also its own
  172.            #I commands.  <time> always offsets the "includee" relative to
  173.            the beginning of the "includer," taking into account the
  174.            "includer's" own offset if the "includer" was itself included by
  175.            some other script.
  176.  
  177.            <filename> may be any valid path + file name.  <filename> can
  178.            specify a complete path; if no path is specified then JACOsub
  179.            will look in the default scripts directory, which you can set in
  180.            the General Config menu.  If you omit the extension in
  181.            <filename>, then the program will include the script with the
  182.            most recent time-stamp, among the extensions .js, .tts, .pjs, or
  183.            .tim (.jsc, .pan, or .sub files won't be considered).  The file
  184.            name must not contain any spaces.
  185.  
  186.            Any occurrences of #F, #P, #Q, and #R in an included script will
  187.            be ignored.  These commands work only in the primary script, and
  188.            they affect all included scripts.  The effects of #D, #S, and #T
  189.            commands are passed down into included scripts, but these
  190.            commands inside an included script affect only that script and
  191.            others IT might include; they have no effect on the higher-up
  192.            "calling" scripts.
  193.  
  194.            Example: #I 0:21:44.16 scripts:kor/kor-credits.js
  195.  
  196.    #P[ALETTE] <color> <r> <g> <b> [palette]
  197.            This sets the red, green, and blue intensities for color
  198.            register <color> (0-15), to <r>, <g>, and <b>, respectively.
  199.            RGB intensities may be specified in decimal (0 to 15) or
  200.            hexadecimal (0 to f).  If any of the values <r>, <g>, or <b>
  201.            are 16 or higher, the palette specification is assumed to be
  202.            24-bit (i.e. RGB intensities from 0 to 255 decimal, or 00 to ff
  203.            hexadecimal).  Hex numbers may be upper or lowercase.
  204.  
  205.            #PALETTE may be specified anywhere in the file, but the setting
  206.            will be used for the entire script.  Use RGB values 14 or higher
  207.            (24-bit: 238 dec, EE hex) with caution, as these are stronger
  208.            than normal video signals, and can result in color bleeding when
  209.            using in your genlocked video signal.
  210.  
  211.            Do not redefine color 2; JACOsub expects it to remain black.
  212.  
  213.            The optional [palette] parameter defaults to 0, and indicates
  214.            the palette number in which to set the color.  JACOsub has 10
  215.            palettes available.  All 10 palettes are initialized to initial
  216.            values set in the Playing / video Config menu.  Palettes 1 - 9
  217.            may be used to reset temporarily certain colors for a particular
  218.            display, using the CP directive.  If JACOsub is using a
  219.            2-bitplane display, for example, you are restricted to 4 colors
  220.            at any one time, but using multiple palettes allows you to
  221.            redefine them on the fly.
  222.  
  223.            Examples:
  224.            #P1 14 14 6    # set color 1 to yellow, in default palette 0
  225.            #P1 d d 6      # same as above, using hexadecimal RGB values
  226.            #p 3 0 13 0 1  # set color 3 to green, in palette 1
  227.  
  228.    #Q[UANTIZE] [n]
  229.            This command has the effect of eliminating timing gaps between
  230.            subtitles of less than [n] time units, as specified by the #T
  231.            command.  Default is #Q0.  Example:  With #t30 and #q2
  232.            specified, any time event less than 2/30 seconds earlier than
  233.            another time event will be rounded up to the later event.  This
  234.            is of questionable usefulness.  If this command occurs before a
  235.            #T command, then 30 units per second is assumed.  Subsequent #Q
  236.            commands replace earlier ones.  Only the last #Q command in a
  237.            script has any effect.
  238.  
  239.    #R[AMP] <seconds.units>
  240.            If you play a pre-timed script, and discover a time drift, then
  241.            use this command.  The parameter <seconds.units> is the amount
  242.            of drift to correct over the entire script.  Script timings will
  243.            be adjusted appropriately according to this value.  A positive
  244.            value will lengthen the total script running time, and a
  245.            negative value will shorten the total script running time.  The
  246.            default value is #R0.  The number after the decimal point is NOT
  247.            a fractional second; it is the number of time units specified by
  248.            #T.  THIS COMMAND MUST NOT OCCUR BEFORE A #T COMMAND.  Examples:
  249.  
  250.            #R-3.60  will shorten the script running time 3 seconds plus 60
  251.                     time units.
  252.            #R .92   will lengthen the script running time 92 time units.
  253.  
  254.            IMPORTANT:  Genlocks may affect the computer's internal clock.
  255.                        If you find that you have to ramp a 30-minute script
  256.                        more than 10 seconds, then you have a bad problem
  257.                        with your genlock.  DO NOT TRY TO "FIX" THE PROBLEM
  258.                        WITH A BIGGER RAMP TIME!  Doing so will result in
  259.                        math overflows, causing sudden jumps in timing.
  260.  
  261.    #S[HIFT] <[[hours:]minutes:]seconds.units>
  262.            The parameter <seconds.units> is the amount to shift each time
  263.            event in the script.  A positive value will delay each time, and
  264.            a negative value will advance each time.  The default value is
  265.            #S0.  The number after the decimal point is NOT a fractional
  266.            second; it is the number of time units specified by #T.  THIS
  267.            COMMAND MUST NOT OCCUR BEFORE A #T COMMAND.
  268.  
  269.            The first occurrence of #S in a script determines a global
  270.            amount of shift, even if the first #S appears AFTER some timed
  271.            lines.  Subsequent occurrences affect only those lines following
  272.            the #S.  You must take care that your #S commands do not cause
  273.            any times to be less than zero.  The Amiga uses unsigned
  274.            integers (always positive) for its internal representation of
  275.            times, meaning that a time "less than" zero is actually a very
  276.            large number!
  277.  
  278.            Example:  #S -0.20 will cause ALL events to occur 20 time units
  279.            sooner than usual, if this is the FIRST #S.  Otherwise, all
  280.            events SUBSEQUENT to this command will be shifted so that they
  281.            occur 20 units sooner.
  282.  
  283.    #T[IMERES] <n>
  284.            Time resolution; sets time units to <n> per second.  The default
  285.            is SMPTE units of 30 counts/second, as in #T30.  If your script
  286.            is in units 1/100 second units or PAL units, you must say so
  287.            with the appropriate command, before the subtitle text begins.
  288.            The #R or #S commands cannot precede a #T command.
  289.  
  290.            Examples:  #t100
  291.                       #TIMERES 25
  292.  
  293.  
  294. 3.  TIMED LINES
  295. ===============
  296.  
  297. Timed lines for the script may occur in any order.  They look similar to
  298. this:
  299.  
  300.    H:MM:SS.FF H:MM:SS.FF directive {comment} text {comment} more text...
  301.  
  302. For example:
  303.  
  304.    0:30:57.22 0:30:59:46 vm {opening credit} A Film By Akira Kurosawa
  305.  
  306. Here's what all those pieces are:
  307.  
  308. Start time and stop time
  309. ------------------------
  310. The first field is the time when the subtitle is to appear on the screen.
  311. The normal default is SMPTE format (that is, FF can range from 00 to 29).
  312. Use the #T command (described above) to define the units.  IMPORTANT: The
  313. FF digits represent time units, NOT fractions of a second.  There is a
  314. difference!  For example, if you use #T10 to specify 1/10 second time
  315. units, then a time such as 0:00:00.60 would be illegal (and result in an
  316. error) because it specifies 60 time units!  0:00:00.6 or 0:00:00.06 or
  317. even 0:00:00.00006 would be correct for this case -- 6 UNITS are specified,
  318. not 6 tenths of a second.
  319.  
  320. The second field is the time when the title is to disappear.
  321.  
  322. If you prefer, you do not have to use the H:MM:SS.FF format at all.
  323. Instead, you can substitute a @ symbol followed by a single integer to
  324. represent total time units.  For example, if #T30 is used to specify 1/30
  325. second units, then the 0:05:10.22 is the same as @9322.  This format is
  326. useful for representing times as video frame counts.  Many laserdisc
  327. players display times in this fashion.
  328.  
  329. Directive string
  330. ----------------
  331. The next field is the directive.  It is optional.  If you leave it out, the
  332. program will default to standard subtitling form (all text centered at the
  333. bottom of the screen or depending on how you have your global default
  334. directive set in your configuration).  The title text MUST begin with a
  335. non-alphabet character {such as a comment} if you omit the directive.
  336. Directives are explained fully in the DIRECTIVES section below.  The first
  337. non-whitespace character following  the directive is assumed to be the
  338. beginning of the subtitle text.
  339.  
  340. Inline comments
  341. ---------------
  342. The {comment} is considered a part of the subtitle text, but it is ignored
  343. by the software.  Use it for character names or keywords.  A comment must
  344. be enclosed in braces.  Comments may appear anywhere within the text of a
  345. subtitle.  If you really want to to display a left brace, precede it with a
  346. backslash like so: \{.  Right braces will be interpreted as a literal
  347. character or close of a comment, whichever seems appropriate.  If a
  348. whitespace character immediately follows a comment closing brace, then that
  349. first whitespace character will be ignored.  Any other kind of following
  350. character will be considered part of the subtitle text, and used.  Comments
  351. in the text are especially useful when translating foreign films -- we use
  352. them to list possible translations of phrases we are not yet sure about.
  353.  
  354. Title text
  355. ----------
  356. In the example above, the "text" and "more text" fields are what get
  357. displayed.  There are several special codes that you can put inside the
  358. text (in JACOsub scripts, CASE MATTERS ONLY IN THESE CHARACTER CODES):
  359.  
  360. Special character codes:
  361.  
  362.    \    Concatenate.  If the LAST character in a line is a backslash, then
  363.         JACOsub will concatenate the text on the next line to the text
  364.         in the current line.  Leading and trailing whitespace will be
  365.         stripped from the concatenated text, so you can indent it if you
  366.         wish.
  367.  
  368.    \n   Newline.  This is like a carriage return.  A line containing this
  369.         code will be split at the \n.  Each of these new fragments will
  370.         then be wordwrapped separately unless you turn wordwrapping off
  371.         (see the W directive below).  \n is useful for general formatting.
  372.         Multiple \n codes may be concatenated to create blank lines.
  373.         Example:  Hello!\n\nHow are you?{blank line separating the two}
  374.  
  375.    \{   Display a left brace.  Left braces are normally used to indicate
  376.         the beginning of a comment.
  377.  
  378.    \~   Display a tilde.  Tildes are normally used to create "hard" spaces
  379.         (see below).
  380.  
  381.    \\   Display a backslash.  Backslashes are normally used to denote these
  382.         special codes.
  383.  
  384. Insertions:
  385.  
  386.    \D   Insert current date into the title.  The date will be of the format
  387.         DD MMM YYYY, as in 2 Apr 1996.
  388.  
  389.    \T   Insert current time into the title.  The time will appear as HH:MM
  390.         (24-hour time).
  391.  
  392. Font codes:
  393.  
  394.    \N   Normal.  All text appearing after this code will be displayed in
  395.         "normal" style.  This is typically the default, unless you have the
  396.         style (S) directive set to something other than normal.  Note that
  397.         this code is an uppercase \N -- a lowercase \n is a newline code.
  398.  
  399.    \I   Italics.  Display all text appearing after this code in italics.
  400.         Example:  \IHello!\N\nHow are you?{Hello is in italics}
  401.  
  402.    \B   Boldface.  This one isn't particularly useful, but go ahead if you
  403.         feel like it.  Text characters will be slightly fatter.
  404.  
  405.    \U   Underline.  This is virtually useless for large color text.
  406.  
  407.    \Cn  Color n.  The text following this code will be displayed using face
  408.         color n.  n is a hexadecimal digit; it may take the values 0-9 or
  409.         A-F (or a-f).  Typically, when using the font supplied with this
  410.         software on a 2-bitplane display, only colors 3 and 1 are useful.
  411.         See the CF directive below for some caveats about colors.
  412.  
  413.    \Fn  Font n.  The text following this code will be displayed using font
  414.         number n.  n may range from 0 to 9 (or 0 to 3 if the program is
  415.         not registered).  Normally you would use the F directive to set the
  416.         default font for a line; use this escape code to override it.
  417.  
  418. THE FONT CODES ABOVE AFFECT ONLY ONE TIMING LINE; their effects do not
  419. carry over into other lines.  These codes override any directives.  The \I,
  420. \B, and \U codes are mutually exclusive:  You can have bold text or italic
  421. text, but you cannot create text that is BOTH bold and italic.  See the 
  422. demo script file (demo.js) for good examples on usage.
  423.  
  424. Leading or trailing space in subtitle text will be ignored.  If you want to
  425. encode a true space on the ends of some text, use a tilde (~).  It will be
  426. displayed as a space.  To actually display a tilde, precede it with a
  427. backslash: \~.  Tildes may also be used to create "hard" spaces; they will
  428. be displayed as spaces but text will not be wordwrapped on these spaces.
  429.  
  430. White space between line arguments may consist of any amount of spaces or
  431. tabs.  Each tab character inside the subtitle text will be converted to a
  432. space character.
  433.  
  434.  
  435. 4.  DIRECTIVES
  436. ==============
  437.  
  438. Directive strings were briefly described above, but there are so many that
  439. they deserve to be allocated a whole section of this document.
  440.  
  441. A directive is a series of character codes strung together.  A directive
  442. determines a subtitle's position, font, style, color, and so forth.  Each
  443. character code begins with an alphabet character followed by arguments made
  444. up of other alphabet characters and numbers.  Directives may contain any of
  445. the following codes, in any order.  The directives may be uppercase or
  446. lowercase.  Like the text codes above, directives only affect a SINGLE
  447. timing line; their effects do not carry over into other lines.  Any
  448. parameters shown here in square brackets [] are optional.
  449.  
  450. Vertical positioning
  451. --------------------
  452.  
  453.     VA     Continue this line directly Above the previous one.  This is
  454.            the opposite behavior of VU below.  This is a useful directive
  455.            for those cases where you want a new line to appear above the
  456.            previous line's position, even if both lines do not share the
  457.            same time range.  See VU below for more details.
  458.  
  459.     VB[n]  Bottom.  Position last line at the bottom (default).  The offset
  460.            from the bottom of screen n is optional  - it says how many
  461.            raster lines to offset from the physical bottom-of-viewport.  VB
  462.            by itself is the same as VB16 (in the original default for this
  463.            software).  The default value of n can be changed using #D
  464.            command or in the General Configuration settings.
  465.  
  466.     VHn    Line height (i.e. spacing), where n is the percentage of the
  467.            font height to use for line spacing.  Default is 100 (single-
  468.            spaced).  Using 200 would result in double-spaced lines.  n may
  469.            range from -32768 to 32767, although the useful range is
  470.            probably more like 50 to 500.
  471.  
  472.     VL[n]  line n. Position subtitle starting at text line n (the height
  473.            of a line depends on the font you use).  n=0 is the top line.
  474.            If n is negative or omitted, the line will appear in the same
  475.            vertical position as the preceding timed line.
  476.  
  477.     VM[n]  Middle.  Text will be centered vertically in the area defined by
  478.            the VTn and VBn directives.  The optional parameter [n] is a
  479.            positive or negative integer that will cause the centered block
  480.            to be shifted up or down [n] lines (line height determined by
  481.            the VH setting).
  482.  
  483.     VPn    Pixel n. Position subtitle so that the font baseline of the
  484.            first line of text is n pixels from the top of the viewport.
  485.            You need to know your font's baseline position for this
  486.            directive to be of any use.  The mouse-positioning operation in
  487.            the script editor creates directives like this.
  488.  
  489.     VS[n]  Scroll at speed n (default -2).  n<0 is number of frames to wait
  490. (Amiga)    per raster line scrolled.  n>0 is number of raster lines to
  491.            scroll per frame.  n may range from -6 to 4, with the values -1,
  492.            0, and 1 all treated the same.  Text will scroll in from the
  493.            bottom of the display and scroll off the top.  If the start time
  494.            of scrolled text is the same as the end time of the previous
  495.            view, the previous view will be scrolled off as the new text is
  496.            scrolled in.  The new text to be scrolled in will begin at an
  497.            offset below the bottom edge of the screen, controlled by the VT
  498.            offset quantity.
  499.  
  500.            IMPORTANT CONSIDERATIONS FOR VERTICAL SCROLLING DIRECTIVE:
  501.            1.  Overlapping time ranges are ignored, except for
  502.                concatenations caused by VU directives.  Use the VU
  503.                directive to concatenate title paragraphs, otherwise use the
  504.                end-of-line concatenation escape character (\).
  505.            2.  Be sure you give the titles sufficient duration for the
  506.                scrolling to complete -- if the duration is too short,
  507.                scrolling will complete anyway, delaying anything scheduled
  508.                to happen immediately afterward.
  509.            3.  The only really useful scrolling speeds are -2 or less.
  510.                Speeds of 2 or higher are almost too fast to read anything,
  511.                and the maximum speed of 4 is usually too fast for the
  512.                program to keep up with.  Speeds -1, 0, and 1 (all treated
  513.                the same) result in strange distortions due to the fact that
  514.                the video is interlaced.  This fact, combined with an odd-
  515.                numbered scroll at every video refresh, causes only every
  516.                other line in the bitmap to be visible during the scroll.
  517.            4.  Regardless of whether the speed is even or odd, positive
  518.                speeds that do not divide evenly into your screen height
  519.                will be reduced to the next lower speed that does divide
  520.                evenly.
  521.            5.  The following directive prefixes will be ignored:
  522.                E, CS, FC, FD, FO, FS, FQ, I, and R.
  523.            6.  Scrolling may not be smooth for large fonts or color fonts,
  524.                or it may be smooth but the text may not be generated
  525.                rapidly enough to keep up with the scroll.  Either way, the
  526.                program will warn you if you try to scroll a color font.  It
  527.                works best with small-to-medium sized mono-color fonts.
  528.            7.  Under AmigaDOS 1.3 and below, fonts with slightly
  529.                overlapping bitmaps may not be spaced properly.  The program
  530.                will warn you of this if you try it under 1.3.
  531.            8.  The VU directive may be used after VS to append more text.
  532.                You should use VU to concatenate paragraphs of scrolling
  533.                titles.  This is more memory-efficient than using the \
  534.                concatenation code at the end of each line.
  535.            9.  You can use embedded codes to change text style and color,
  536.                but be careful changing fonts in the middle of a line.
  537.                Changing fonts works best if the new font is on a separate
  538.                line all its own, or if the new font is the same size as
  539.                other fonts on the same line.
  540.           10.  This directive uses a significant amount of display memory;
  541.                equivalent to slightly more than two additional display
  542.                buffers.  Insufficient RAM will cause scrolled titles to be
  543.                skipped.  Sometimes the scrolling bitmap will fail to
  544.                allocate from fragmentation in the available display memory.
  545.                Shutting down the program and restarting it might alleviate
  546.                this fragmentation enough to facilitate scrolling.
  547.  
  548.     VT[n]  Top.  Position the title with the first line at the top.  The
  549.            offset n is optional - as with VB, VT by itself is the same as
  550.            VT16 in the original distribution of this software.
  551.  
  552.     VU     Continue this line directly Underneath the previous one.  This
  553.            is useful if you want a line with different directives grouped
  554.            in the same vertical-positioning block as the previous line.
  555.            It's like the line-concatenation escape code (\) only it doesn't
  556.            continue the previous line where it left off, but instead starts
  557.            a new line below it, positioning the previous line higher, if
  558.            necessary, to make room for the new line.
  559.  
  560.            You can also use the VU directive to create interesting effects
  561.            when a line with the VU directive does not share the same time
  562.            range as the previous line.  For example, suppose you had a
  563.            single line that used the VM directive.  Normally it would be
  564.            perfectly centered vertically on the screen.  However, if a VU
  565.            line follows it, both are positioned as if they were a single
  566.            block of lines to be centered on the screen together; i.e. the
  567.            VM line will appear slightly above center and the VU line will
  568.            appear slightly below center, regardless of WHEN they are
  569.            individually displayed.  Had VB been used instead of VM, the
  570.            first line would have appeared raised one text line higher than
  571.            bottom, just enough to make room for the second line.  VA has
  572.            the same effect as VU if the lines are reverse-ordered in the
  573.            script.
  574.  
  575. Horizontal positioning
  576. ----------------------
  577.  
  578.   Margins:
  579.  
  580.     HLn    Left margin.  Set left margin at a position that is n% of the
  581.            the screen width.  Default is HL1 (1% from left edge).  Minimum
  582.            value is -128 (way past the left edge of the display area).
  583.  
  584.     HRn    Right margin.  Set the right margin at a position that is n% of
  585.            the screen width.  Default is HL99 (1% from right edge).  The
  586.            right margin MUST be greater than the left margin.  Maximum
  587.            value is 127, although anything greater than 100 is useless.
  588.  
  589.   Text justification:
  590.  
  591.     JC     Center.  Text is centered within H constraints (normal default).
  592.  
  593.     JF[:p] Full.  This aligns the left and right edges of text flush with
  594.            the ends of the widest wordwrapped line in the text block.  If
  595.            you want the justified text to span the full margin width, set
  596.            wordwrapping to W2 (greedy) instead of W1 (smart, the default).
  597.            The :p is a position parameter.  It may be :C (default), :L, :R,
  598.            or :U, for Center, Left, Right, and Unconditional, respectively.
  599.            :C, :L, and :R control the position of non-wordwrapped lines
  600.            such as single short lines or the last line in a wordwrapped
  601.            block -- these will not not be stretched to fit the block width.
  602.  
  603.            (Remember, \n codes delimit wordwrapped blocks; a title split
  604.            by \n codes will wrap and justify each section as if they are
  605.            completely separate titles.  If you want to justify a title
  606.            properly, you should remove all \n codes except for where the
  607.            wrapping and justifying should end.)
  608.  
  609.            The :U parameter means "unconditional."  JF:U is the same as JU.
  610.            JF:U causes ALL lines in the block, wordwrapped or not,
  611.            including the last line, to be stretched to fit exactly within
  612.            the margins.  JF:U is useful for titling credits like this:
  613.  
  614.                   Clint Eastwood . . . . . . . Dirty Harry
  615.  
  616.            All the spaces will then be adjusted so that the line fits
  617.            exactly inside the margins, and a list of these credits will
  618.            have flush left and right edges.  You will need to experiment
  619.            with the number of dots and spaces to get it all to look good.
  620.            You can also try elminating the spaces between the dots, or
  621.            substituting dashes, for somewhat different effects.
  622.  
  623.            JF[:p] commandeers one character in each proportional font for
  624.            use as an adjustable space; the decimal character code used will
  625.            be one of: 128, 31, or 127, whichever is available (hex codes
  626.            80, 1F, or 7F, respectively).  The JF directive has no effect on
  627.            fonts lacking all of these character codes.  Mono-spaced fonts
  628.            are likewise unaffected.
  629.  
  630.     JL     Left.  Align left edge of text at the HLn margin position.
  631.  
  632.     JR     Right.  Align the right edge of text at the HRn margin position.
  633.  
  634.     JU     Obsolote directive; identical to JF:U
  635.  
  636.   Block justification:
  637.  
  638.     JBC    Justify block center.  Because of wordwrapping, the width of a
  639.            text block will never occupy the full width specified in your
  640.            margin settings.  This directive positions the imaginary
  641.            rectangle occupied by the text in the center of your margin
  642.            settings, regardless of the text justification directives.  For
  643.            example, the JL directive by itself might produce the following
  644.            effect (the | character indicates margin boundaries):
  645.  
  646.            | The quick brown fox                      |
  647.            | jumped over the lazy dog.                |
  648.  
  649.            but the JL directive together with JBC will preserve the text
  650.            justification but center the block of text between the margins:
  651.  
  652.            |        The quick brown fox               |
  653.            |        jumped over the lazy dog.         |
  654.  
  655.            AnimEigo video products have their subtitles displayed this way.
  656.  
  657.     JBF    Justify block full (default).  Text will be positioned according
  658.            to whatever text justification directives are in effect, using
  659.            the full width specified by the current margin settings.
  660.  
  661.     JBL    Justify block left.  Position the text block at the left margin.
  662.  
  663.     JBR    Justify block right.  Position the text block so that the right
  664.            edge is at the right margin.
  665.  
  666.   Wordwrapping:
  667.  
  668.     W0     Disable automatic wordwrapping.  This may result in your text
  669.            not fitting within the position constraints defined with H & V.
  670.            There is really NO reason at all why you would want to turn off
  671.            wordwrapping; you can wrap words manually with the \n code
  672.            whether wordwrapping is on or off.  This directive is here just
  673.            for the sake of completeness.
  674.  
  675.     W1     Automatic "smart" wordwrapping (default).  Even if a your text
  676.            contains newline codes, the separate substrings will be word-
  677.            wrapped if necessary.  This wordwrap mode uses a "smart"
  678.            algorithm that attempts to minimize the area of the screen
  679.            occupied by the title.  In this mode, you will never see a line
  680.            wrapped as shown (the | characters indicate margin boudaries):
  681.  
  682.            | The quick brown fox jumped over the lazy |
  683.            |                   dog.                   |
  684.  
  685.            Instead, the W1 alghorithm will attempt to minimize the text
  686.            area without using any extra lines, resulting in:
  687.  
  688.            |           The quick brown fox            |
  689.            |        jumped over the lazy dog.         |
  690.  
  691.            This is easier for the viewer to read.  Same margins, same
  692.            number of lines, but the lines are more equal in length.
  693.  
  694.     W2     Automatic "stupid" (generally known as "greedy") wordwrapping.
  695.            If you are disconcerted by words not completely filling the
  696.            horizontal margin space, and you don't mind having a single word
  697.            hanging by itself on the last line (as in the first W1 example
  698.            above), then use this directive.  This is the standard
  699.            text-editor wordwrap algorithm, which makes no attempt at
  700.            aesthetics.  Why anybody would want to use this is beyond me,
  701.            but here it is.  \n codes behave the same as with W1.
  702.  
  703. Fonts
  704. -----
  705.  
  706.   Font rendering:
  707.  
  708.     Fn     Use font n, where n is a number from 0 to 9 (JACOsub loads
  709.            four fonts, which you can specify in the Config menu.  The usual
  710.            default font is 0, which is what you should use as your
  711.            "primary" font.  Fonts 4-9 are unavailable if the software is
  712.            unregistered.
  713.  
  714.     FQ     Quick&Dirty text.  Text color 3 is always quick.  Other colors
  715. (Amiga)    must normally be rendered one character at a time to avoid
  716.            interference between the shadow and face color, but only when
  717.            the font is designed with overlapping characters.  This
  718.            interference happens because of a fault in the way the Amiga
  719.            renders text.  The FQ directive forces all text on a line to be
  720.            rendered in quick mode as if it were color 3.
  721.  
  722.            You should never need to use the FQ directive.  The program is
  723.            smart enough to determine when a font can be quick&dirty.  For
  724.            example, JACOsub's 32- and 36-pixel fonts will default to clean
  725.            mode because they have overlapping characters, but the 32-pixel
  726.            font will default to Quick&Dirty because its characters do not
  727.            overlap.
  728.  
  729.     FC     Clean rendering.  Only color 3 will be rendered fast, other
  730. (Amiga)    colors will be rendered so that the face color is not disturbed.
  731.            You can use this directive to negate, on a single line, a global
  732.            FQ directive set using the #D command.  Normally this directive
  733.            will never be needed.
  734.  
  735.            The demo script demo.js tricks JACOsub into generating "slow"
  736.            clean text in the foreground display so you can see how it is.
  737.            If you are curious to see how the Amiga messes up color 1 text
  738.            if it's displayed the quick way, run the demo after inserting
  739.            the global command #DFQ at the top of the file demo.js before
  740.            you play the demo.
  741.  
  742.     FD     Default text rendering.  Rendering will be "quick" or "clean"
  743. (Amiga)    depending on how your font was set up in your configuration.
  744.            This directive is useful for overriding a #DFC or #DFQ command.
  745.  
  746.     FBn    Blitter activity.  This overrides the "Use Blitter" program
  747.            configuration setting.  If n=1, the blitter will be used to copy
  748.            text between background video buffers for titles that extend
  749.            over several time events.  If n=0, then time-overlapping text
  750.            will be generated afresh on each video buffer.  Normally, the
  751.            blitter should always be enabled.  However, blitting between
  752.            buffers will also copy any imagery behind the title (like a
  753.            graphic or shaded background), which might not share the same
  754.            time range as the title.  If this happens, then disable the use
  755.            of the blitter for that title with the FB0 directive.
  756.  
  757.     FOn[:a]  Generate an outline around the font, n pixels wide.  Color 2
  758.            (JACOsub's outline color) is used to generate the outline.  This
  759.            directive is useful for transforming a plain mono-color Amiga
  760.            font into a nice titling font, especially when combined with the
  761.            FS (font shadow) directive.  Recommended value for n is 2, which
  762.            produces a nice flicker-free outline.  n must be less than 127.
  763.            The maximum practical value is 3 or 4.  The default value is 0.
  764.  
  765.            The optional :a suffix indicates a color to use for anti-
  766.            aliasing.  This defaults to the anti-alias setting in the
  767.            Playing / video configuration, typically 2 (no antialiasing).
  768.  
  769.            WARNING:  Generating outlines can slow the program down
  770.            considerably!  It is recommended that you use this directive
  771.            only with QUICK&DIRTY font rendering, preferably with mono-color
  772.            fonts.  An antialias color other than 2 will slow it down
  773.            somewhat further.
  774.  
  775.     FSdn   Generate a font shadow, taking into account any existing font
  776.            outline, in direction d, and n pixels deep.  Color 2 (JACOsub's
  777.            shadow color) is used to generate the shadow.  The direction d
  778.            is specified as a compass direction: N, S, E, W, NW, NE, SW, SE.
  779.            Good values to use for the shadow depth n are 2 - 5.  The
  780.            warning about font outlines above applies here also.
  781.  
  782.            Example: FSSE3 produces a shadow similar to the JACOsub 32-
  783.            pixel font, with the shadow extending down and to the right.
  784.  
  785.   Font style (may also be set with \ codes in the title text):
  786.  
  787.     SN     Normal style (typical default).
  788.  
  789.     SI     Italic.
  790.  
  791.     SB     Bold (using the JACOsub font, this doesn't look good with colors
  792.            other than color 3).
  793.  
  794.     SU     Underline (ugly!  Not recommended).
  795.  
  796.   Font color (CFn may also be set with text codes):
  797.  
  798.     CFn    Use color register n for the face color of the font.  JACOsub
  799.            assumes that all color fonts use bitplane 0 (i.e. color 1) for
  800.            the face color, and bitplane 1 (i.e. color 2) for the shadow/
  801.            outline.  THIS IS IMPORTANT!  JACOsub will generate text
  802.            differently depending on the color selected (see FF above).
  803.            The foreground color may also be set using the \Cn code inside
  804.            the text.
  805.  
  806.     CBn    Use color register n for the background color.  The display
  807.            will be cleared to this color prior to building the text.  If
  808.            two lines share the same display, and they have different
  809.            background colors specified, the screen will be cleared using
  810.            the latest NON-ZERO background color that occurs for that
  811.            display.  In other words, non-zero colors override the default
  812.            zero (transparent) background color.
  813.  
  814.     CPn    Use color palette n for this display.  Default value of n is 0,
  815.            which is the primary color palette normally used by JACOsub.
  816.            The values of n may range from 0 to 9, for a total of 10 color
  817.            palettes.  All 10 palettes are initially set to a master palette
  818.            which can be modified in the Playing / video Config menu, and
  819.            they can be modified with the #Palette script command.
  820.  
  821.            Because the palette is loaded immediately following a video
  822.            buffer switch, the new imagery on the display will appear with
  823.            the old palette momentarily.  If this is too noticeable, then
  824.            you should precede your alternate-palette lines with a "dummy"
  825.            short-duration blank screen (containing a hard space) using your
  826.            alternate palette, as in this example:
  827.  
  828.            0:00:12.20 0:00:12.22 cp2 ~{palette 2 on blank screen, .02 sec}
  829.            0:00:12.22 0:00:14.50 cp2 This will appear with the new palette.
  830.  
  831.     CS[L]n[:s[:c]] This causes text to appear inside a shaded rectangle.
  832.            The rectangle will be large enough to contain the text with a
  833.            margin of n pixels on all sides.  The shading is user-defined
  834.            (see the Playing / video Config menu) if s=0, or solid if s=1.
  835.            Color c will be used for the rectangle.  The style (s) and color
  836.            (c) paramters are optional; not setting them uses the defaults,
  837.            normally s=0, c=2 (user-defined, black).
  838.  
  839.            Setting n=0 disables the shading.  We suggest using n=8 or more.
  840.            Without the [L] parameter described below, only ONE shaded
  841.            background rectangle will appear on the screen; that is, JACOsub
  842.            will attempt to create a SINGLE box which contains ALL text that
  843.            uses the CS directive and shares the same display.  If two
  844.            shading directives for the same time range have conflicting
  845.            parameters, one of the directives will be used, but predicting
  846.            WHICH one is impossible.  The normal default setting is CS0:0:2,
  847.            which can be changed using the #D command.
  848.  
  849.            The optional [L] parameter causes each text segment (which might
  850.            be split by wordwrapping) to be shaded in its own rectangle.
  851.            This looks ugly for a block of wordwrapped text, but it is
  852.            useful for shading separate single lines that overlap in time.
  853.  
  854.            Notes:  Setting VB0 will mean that bottom-positioned text is as
  855.            low as it will go, therefore shading cannot appear below it.
  856.            You should set the VB directive so that there is room for the
  857.            shading rectangle to extend below the text.  Also, VB text will
  858.            be repositioned slightly higher when the running clock is
  859.            displayed during play, but shade boxes will NOT be repositioned.
  860.  
  861. Genlock fader control (Amiga only)
  862. ---------------------
  863.  
  864.     GBn[Tm] Move the background slider control to n% saturation over a time
  865. (Amiga)    period of m/60 seconds of time.  n may range from 0 to 100.  If
  866.            time specifier is omitted, it defaults to 0 (i.e. instant).
  867.            Zero saturation is a normal transparent background, allowing the
  868.            video signal to show through all areas corresponding to color 0
  869.            on the computer's display.
  870.            Example:  GB63T120 slides the background fader to 63% saturation
  871.            in 2 seconds (120/60 seconds).
  872.  
  873.     GGn[Tm] Move the graphics slider control to n% saturation over a time
  874. (Amiga)    period of m/60 seconds of time.  100% saturation is the normal
  875.            operating mode (full graphics), whereas 0% results in only the
  876.            video signal with no overlaid computer graphics.
  877.  
  878.         >> DO NOT USE GG OR GB IN DEFUALT DIRECTIVES, or the genlock will
  879.            be having control signals sent to it at every time event.
  880.  
  881. IFF graphic files (obsolete, see R directives) (Amiga only)
  882. -----------------
  883.     IL     Same as RLB.  Retained for compatibility with previous versions.
  884.     IS     Same as RLG.  Retained for compatibility with previous versions.
  885.  
  886. Special effects
  887. ---------------
  888.  
  889. Basic information and warnings:
  890. 1.  Only one effect can exist per time event.  If two titles share the same
  891.     start time, but have different effects, only one effect will be
  892.     executed for both titles.
  893. 2.  All these effects must be given sufficient time to complete.  Any
  894.     time events that occur while the effect is in progress will be
  895.     postponed until the effect is finished executing.
  896. 3.  With the exception of effects EN or E0, and ES, an effect directive
  897.     will be ignored if the bitmaps for the current view and next view are
  898.     incompatible (having different dimensions or depth).  This is not a
  899.     problem for transitions between two normal video buffers; but the
  900.     effect will be ignored if you try to transition to a graphic screen
  901.     having different dimensions or display mode from the image currently
  902.     displayed.
  903. 3.  In the descriptions below, the "d" parameter controls the direction of
  904.     the effect, if applicable.
  905. 4.  The optional "[s]" parameter controls the speed of the effect, which
  906.     may range from 1 to 64 (default is 8 if omitted).  The speed represents
  907.     raster lines per vertical CRT blank.  If s=0 or s=?, the speed will be
  908.     randomly chosen.
  909. 5.  If you notice "roughness" in the way these effects operate, try
  910.     reducing either the effect speed or the number of colors you use for
  911.     script playback.
  912.  
  913.     EBd[s] Blinds.  New view replaces old view as if Venetian blinds were
  914.            opened.  Direction d may be V or H to specify vertical or
  915.            horizontal blinds.
  916.  
  917.     ED[s]  Dissolve.  New view replaces current view by random memory
  918.            replacement.  There are only three speeds: slow (s=0-9), medium
  919.            (s=10-19), and faster (s>20).  This is probably not the best
  920.            algorithm for a dissolve -- if anybody can write a better one,
  921.            please send it to the author.  It needs to be cleaner and
  922.            faster.  As it is, the only really useful speed is the maximum
  923.            (s>20).  The actual speed will depend on your video buffer
  924.            size (width, height, number of colors).
  925.  
  926.     EEVd[s] Reveal next view as if Eyelids open (d=O) or close (d=C)
  927.            vertically over the current view.  This is actually two
  928.            simultaneous vertical wipes in opposite directions on the top
  929.            and bottom halves of the display.
  930.  
  931.     EEHd[s] This is a horizontal-wipe Eyelid effect.  It vaguely resembles
  932.            the opening or closing of curtains.
  933.  
  934.     EId[s] Reveal next view as an Iris opening (d=O) or closing (d=C) over
  935.            the current view.
  936.  
  937.     EN     Normal transition (default).  New view replaces old.  Also E0.
  938.  
  939.     EPn[:s] Palette fade.  Transform the current title palette to palette n
  940.            in [:s] video fields.  This effect will be ignored if applied to
  941.            a graphic file.  Speed may range from 0 to 255, instead of 1 to
  942.            64, and the default speed is 32.
  943.  
  944.     EP+a[:b[:p]]
  945.     EP-a[:b[:p]]
  946.            Cycle forward (+) or backward (-) colors a through b (default b
  947.            is the maximum color index) with a period of p video fields per
  948.            cycle step (default 2).  This effect terminates at the next time
  949.            event.  [:p] may be as high as 255.
  950.  
  951.     ERd[s] Smoothly Roll the current view off the display while rolling the
  952. (Amiga)    next view in.  The direction d may be U, D, L, R (up, down,
  953.            left, right).  Caveats:
  954.            1.  This effect consumes much memory: the equivalent of two
  955.                additional video buffers.  You may have to reduce your usual
  956.                number of buffers or colors to make this effect work.
  957.            2.  Horizontal rolls (left and right) are not possible under
  958.                AmigaDOS 1.3.  They will be converted to up and down,
  959.                respectively.
  960.  
  961.     ESd[s] Scroll new view up into the display if d=U, or reveal new view
  962. (Amiga)    by scrolling current view down if d=D.  This directive will also
  963.            work if the bitmaps are incompatible, i.e., if either view is an
  964.            graphic view created by the RLG directive.  This is not a
  965.            "smooth" scroll; you may not find it acceptable.
  966.  
  967.     EWd[s] Wipe next view over current view in the given direction d (U=up,
  968.            D=down, L=left, R=right).
  969.  
  970.     E?[s]  Random transition chosen from those above, with random speed if
  971.            [s] is also a question mark (?), or zero.  Ignored for
  972.            incompatible bitmaps when applicable.  The Random effect does
  973.            not include the Palette effects.
  974.  
  975. Argument directives (using the title string as parameter arguments)
  976. -------------------
  977.  
  978.     DO NOT USE THE R DIRECTIVES IN A #D DIRECTIVE DEFINITION.
  979.  
  980.     RLB <ILBM file name> [<x offset %> <y offset %>]
  981. (Amiga)    Load an IFF graphic file (typically a brush file) into a video
  982.            buffer for the time interval specified by the start and stop
  983.            time.  When this directive appears, JACOsub assumes that the
  984.            remainder of the line is information about the file, NOT title
  985.            text.  The file name must follow the directive string.  The
  986.            position to display the image, specified as percent of screen
  987.            width and height from the center, can be specified in the next
  988.            two fields.  These position coordinates default to 0 0 if they
  989.            are omitted, which results in the picture being centered on the
  990.            screen.  The picture may be positioned to extend beyond the
  991.            display edge.
  992.  
  993.            Any IFF graphic picture or brush may be specified.  As many as
  994.            40 images may be loaded onto a single screen.  This enables you
  995.            to create several small brushes and display them all at once, in
  996.            different areas of the screen.
  997.  
  998.            CAVEATS (READ CAREFULLY!):
  999.            1.  You need at least AmigaDOS 2.0 to use this directive.  Under
  1000.                1.3 and below, this directive is ignored unless you have a
  1001.                1.3-compatible version of iffparse.library in your libs:
  1002.                directory.
  1003.            2.  If a file is too big to fit in memory, the file will simply
  1004.                not load, and the program will beep to alert you.
  1005.            3.  If the graphic file contains more bitplanes than the JACOsub
  1006.                video buffers, the EXTRA BITPLANES WILL BE IGNORED.  You may
  1007.                change the number of JACOsub's bitplanes in the
  1008.                Playing / video Config menu.
  1009.                If you have JACOsub set for a 4-color (2-bitplane) screen,
  1010.                and you try to load in a 16-color (4-bitplane) picture, you
  1011.                will lose 2 biplanes of information, and the picture will
  1012.                look strange when it appears.
  1013.            4.  All pictures are treated as brushes.  Therefore, your
  1014.                picture, once loaded, will use JACOsub's color palette.  THE
  1015.                PICTURE'S OWN COLOR PALETTE WILL BE IGNORED.  Create your
  1016.                graphics using the SAME palette you use with JACOsub or the
  1017.                picture will look strange when it appears.  If you want to
  1018.                load a picture with its own colors, use the RLG directive
  1019.                (but then you won't be able to display text on top of it).
  1020.            5.  JACOsub attempts to load graphic files as they are needed.
  1021.                This can cause a slight video switch delay if a time event
  1022.                occurs while a file is loading, even though the graphic
  1023.                loading routines do check the clock frequently.  Keep your
  1024.                images on a fast hard disk, or better yet, in RAM:.  If you
  1025.                do not have sufficient memory, then do not use this
  1026.                directive!
  1027.  
  1028.     RLG <ILBM file name>
  1029.            Load an IFF (Amiga) or PCX (MSDOS) graphic file into memory to
  1030.            to be displayed, in all its glory, at the appropriate time.
  1031.            On the Amiga, the picture will temporarily replace one video
  1032.            buffer.  Under MSDOS, the file is loaded into one of the
  1033.            buffers.  As with RLB, JACOsub assumes that the text following
  1034.            the RLG directive contains the file name to load.  JACOsub will
  1035.            attempt to center the picture on your display.
  1036.  
  1037.            The RLB caveats 1, 2, and 5 above apply here also, and the RLG
  1038.            directive has some additional considerations:
  1039.  
  1040.            1.  You cannot display text on top of a picture loaded with
  1041.                the RLG directive.  Use the RLB directive for this.
  1042.            2.  The time ranges associated with a graphic screen should NOT
  1043.                overlap any other time ranges.  If they do, the start time
  1044.                for the graphic has priority over any unrealized end times.
  1045.            3.  (MSDOS only) This directive loads a PCX file into one of the
  1046.                video buffers.  The picture MUST be the same resolution and
  1047.                color depth as your display mode.  That's 640x400x256 for
  1048.                HIRES, or 800x600x16 for SUPERHIRES.
  1049.            4.  (Amiga only) The RLG directive can tax your memory even more
  1050.                severely than RLB, especially if you load a pictures like
  1051.                hi-res HAM images to substitute every video buffer.
  1052.            5.  (Amiga only) We observe difficulty loading Extra-Halfbrite
  1053.                pictures.  Try it.  HAM and AGA images seem to work OK.
  1054.  
  1055.     RDB <LeftEdge> <TopEdge> <RightEdge> <BottomEdge>
  1056.            Draw a solid rectangle in the current text color with diagonal
  1057.            corners at the coordinates specified.  Coordinate units are
  1058.            percentages of the display width and height.  This is useful
  1059.            for making video letterbox margins really black.  To make the
  1060.            rectangle appear behind text, be sure it occurs in the script
  1061.            physically before the text, with a start time less than or equal
  1062.            to the text start time.
  1063.  
  1064.     RX <ARexx script name>
  1065. (Amiga)    Execute the ARexx script name that follows the RX directive.
  1066.            You should not specify other directives on the same line.  Only
  1067.            one RX directive may be specified per time event -- that is, if
  1068.            you have several lines all sharing the same start time, no more
  1069.            than one of them may contain an RX directive.  If more than one
  1070.            RX directive is specified for a given start time, the one that
  1071.            occurs latest in the script will be used.  The end time for the
  1072.            line is ignored, but should be larger than the start time to
  1073.            avoid a compiler warning.  Try to make the end time equal to the
  1074.            next nearest start time to avoid creating unnecessary video
  1075.            frames.
  1076.  
  1077. Default directives
  1078. ------------------
  1079.  
  1080. Because all of the above directives are optional, there is one other set of
  1081. directives that may be used when you do not wish to specify any:
  1082.  
  1083.     D or D0   Default.  To be used if no other directives are used.  You
  1084.            don't even need this directive at all, if your text begins with
  1085.            a non-alphabetic character (such as a {comment}, number, etc.).
  1086.  
  1087.            Specifying D (or nothing) will use the program's default
  1088.            settings.  The default directive for JACOsub is normally
  1089.  
  1090.            HL1HR99VH100VT16VB16JCJBFW1E0F0FDFB1FO0:2FSSE0SNCF3CB0CP0CS0:0:2
  1091.  
  1092.            which you can change in the file JACOsub.Config, or with a #D
  1093.            command at the top of your script.  Confused?  Here they are
  1094.            spaced out:
  1095.  
  1096.            HL1 HR99 VH100 VT16 VB16 JC JBF W1 E0
  1097.            F0 FD FB1 FO0:2 FSSE0 SN CF3 CB0 CP0 CS0:0:2
  1098.  
  1099.            The R directives and the Genlock directives should NEVER be
  1100.            specified globally, nor in JACOsub.Config.
  1101.  
  1102.     Dn     The directives D1 - D30 may be defined with the commands
  1103.            #D1 - #D30.  You can use these "default" directives as shorthand
  1104.            for more complex directives that you may need in many places.
  1105.            If you put two D directives in the same directive string, the
  1106.            latest one will be used, and any previous directives ignored.
  1107.  
  1108.    [name]  A name enclosed in square brackets may be substituted for any
  1109.            of the D directives.  You must have previously defined this
  1110.            name when you defined the D directive.
  1111.  
  1112. Other directives may be appended to a D directive to modify the behavior
  1113. of that D directive.  For example, if you defined a directive to use font
  1114. 0 and color 1, and decided to name it "credits" then you would say:
  1115.  
  1116.    #D2 F0CF1 credits
  1117.  
  1118. Then, if you wanted to use the D2 (or "credits") directive with font 3
  1119. instead of font 0, you could modify the directive either of the following
  1120. two ways:
  1121.  
  1122.    0:00:12.01 0:00:19.20 D2F3        Leia performed Akira's voice.
  1123. or 0:00:12.01 0:00:19.20 [Credits]F3 Leia performed Akira's voice.
  1124.  
  1125. You can spell the directive name using uppercase or lowercase characters.
  1126.  
  1127. If a directive string contains conflicting information, the information
  1128. occurring last will be used.  For example, VTD will cause VT to be ignored
  1129. in favor of the default.  In the directive CF10JLCF3, CF10 will be ignored
  1130. in favor of CF3.  Naturally, any directive beginning with D is unaffected
  1131. by the D.  In the long default directive above, you can see VT16VB16.  This
  1132. serves to set the top-of-screen offset to 16 for later, and then sets the
  1133. default vertical positioning at 16 pixels from the bottom of the viewport.
  1134.  
  1135. Time track
  1136. ----------
  1137.  
  1138.     Tx     Designate this line as belonging to track x, where x is any of
  1139.            the characters 0-9, A-F (case insensitive), or punctuation.
  1140.            This directive is ignored when compiling and playing scripts.
  1141.            All titles default to T0 if no track is specified.
  1142.  
  1143. The purpose of tracks is to let you assign unique designations to specific
  1144. title sequences interwoven with others in your script so that you can time
  1145. them separately.
  1146.  
  1147. For example, suppose you need to subtitle two people talking simultaneously
  1148. with music lyrics in the background.  This requires three independent
  1149. timing sequences.  There are two ways to do this:
  1150.  
  1151. 1.  Separate blocks of titles.  Without using the T directive, you must
  1152.     arrange each sequence as a separate block of titles (remember, JACOsub
  1153.     doesn't care about order of the titles in your script file -- it will
  1154.     sort everything out according to start and stop times).
  1155.  
  1156. 2.  One block of titles containing designated time tracks.  You can weave
  1157.     all the titles together as one long sequence, and designate separate
  1158.     tracks with the T directive so that the timing procedure can figure out
  1159.     which titles must be timed, and which must be skipped.
  1160.  
  1161. TRACKS WILL BE IGNORED IN ALL DEFAULT OR USER-DEFINED DIRECTIVES.
  1162. Furthermore, as far as JACOsub is concerned, trackes are not treated
  1163. internally as true directives at all.  Their only use is to flag lines for
  1164. the program's timing functions.
  1165.  
  1166.  
  1167. 5.  SAMPLE LINES
  1168. ================
  1169.  
  1170. These 4 lines all have the same effect.  Note that any spaces after the
  1171. directive and the first space after comments are ignored.
  1172.  
  1173. 0:00:10.11 0:00:12.00 D  {fudo-ikiteru} It's alive!
  1174. 0:00:10.11 0:00:12.00 D  {fudo-ikiteru}It's alive!
  1175. 0:00:10.11 0:00:12.00 D  It's alive!{line doesn't start with a comment}
  1176. 0:00:10.11 0:00:12.00    {fudo-ikiteru} It's alive!{starts with a comment}
  1177. 0:00:10.11 0:00:12.00 [default] {fudo-ikiteru} It's alive!\
  1178.                       {this assumes the D directive was named to "default"}
  1179.  
  1180. If you want leading/trailing spaces, all of these lines will do the same
  1181. thing (put two spaces in front of and after the text):
  1182.  
  1183. 0:00:10.11 0:00:12.00 D  ~~{fudo-ikiteru} It's alive! ~
  1184. 0:00:10.11 0:00:12.00 D  {fudo-ikiteru}~~It's alive!~~
  1185. 0:00:10.11 0:00:12.00 D  {fudo-ikiteru} ~~It's alive!~~
  1186. 0:00:10.11 0:00:12.00 D ~ It's alive!~~
  1187. 0:00:10.11 0:00:12.00 ~~{fudo-ikiteru} It's alive! ~
  1188. 0:00:10.11 0:00:12.00  {fudo-ikiteru}~ It's alive!~~
  1189. 0:00:10.11 0:00:12.00  {fudo-ikiteru} ~~It's alive!~~
  1190. 0:00:10.11 0:00:12.00  {fudo-ikiteru}   It's alive!~~
  1191.  
  1192. THE FOLLOWING LINE IS BAD.  It needs either a directive after the timing
  1193. numbers, or a comment to indicate that subtitle text follows the timing
  1194. numbers.  Any alphabet character (A-Z, a-z) following the timing numbers
  1195. MUST be part of a directive.
  1196.  
  1197. 0:00:10.11 0:00:12.00  It's alive!
  1198.  
  1199. For the next line, use color 1 for the font face color, start the
  1200. subtitle at the top of the screen and leave the other defaults alone,
  1201. and cause one word to be displayed in italics:
  1202.  
  1203. 0:02:23.23 0:02:25.01 cf1vt {thug1-nani} Whaddaya \Imean\N, ``please?''
  1204.  
  1205. Note:  Normal quotation marks ("like this") may be used, but using a
  1206. double grave and a double apostrophe, as in the line above, looks more
  1207. professional on the screen.  Just make sure that the grave looks like an
  1208. upside-down apostrophe in your font, and that both characters occupy a
  1209. narrow space.  The JACOsub fonts are designed this way.
  1210.  
  1211. Additional note (THIS IS ONE OF THE BIG FEATURES OF JACOsub):
  1212. Timings may overlap!  The software will handle overlapping text displays
  1213. properly, but you must be sure to position your subtitles so that these
  1214. separate text events do not physically overlap on the screen.  You can
  1215. arrange timed lines in any order you want, separate overlapped events
  1216. into groups, or whatever.  The program will handle it.
  1217.  
  1218.  
  1219. 6.  CREDITS
  1220. ===========
  1221.  
  1222. The original JACOsub format was dreamed up by Alex Matulich and Daric
  1223. Koslowski, before any code was ever written for JACOsub.  Yes, this was the
  1224. second step!  (The first was to create the fonts.)  Beta testers and users
  1225. have been very helpful in expanding and improving the specification into
  1226. what it is today.  User feedback has played a large role in the development
  1227. of the software and the script format.  The entire JACOsub project has been
  1228. largely user-driven.
  1229.  
  1230. End of JScripts.doc.
  1231.